import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//引入淘宝适配
import 'lib-flexible'

//引入全局公共样式
import "@/styles/index.css"

//引入全局混入
import '@/utils/mixins.js'

//引入vant组件
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//全局注册组件
import '@/components'

//  全局的 axios
import { axios } from '@/api/request'
Vue.prototype.$axios = axios;

// 全局的ajax
import { ajax } from './api/index';
Vue.prototype.$ajax = ajax


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')